#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTableView>
#include "downloadtablemodel.h"
#include <QSqlDatabase>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    DownloadTableModel * tableModel;
    QTableView * table;
public:
    explicit MainWindow(QWidget *parent, QSqlDatabase * db);
    ~MainWindow();
public slots:
    void addDownload();
    void removeDownload();
private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
